 /**
 * @(#) StartupCommand.as
 *
 * @date		2009. 02. 17.
 * @version		1.0
 * @author		Shin, Yunwoo
 * @description	Application 시작을 처리하는 Command
 * 				 
 */
package com.skt.common_hr.congmoney2.controller
{
	
	import com.skt.common_hr.approval_nos.model.ApprovalDetailProxy;
	import com.skt.common_hr.congmoney2.model.AccountProxy;
	import com.skt.common_hr.congmoney2.model.CelebrationApprovalProxy;
	import com.skt.common_hr.congmoney2.model.CelebrationCodeProxy;
	import com.skt.common_hr.congmoney2.model.CelebrationProxy;
	import com.skt.common_hr.congmoney2.model.CongMoney2ListProxy;
	import com.skt.common_hr.congmoney2.model.CongMoney2Proxy;
	import com.skt.common_hr.congmoney2.model.FamilyProxy;
	import com.skt.common_hr.congmoney2.model.SupportStandardProxy;
	import com.skt.common_hr.congmoney2.view.CongMoney2Mediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand implements ICommand
	{
		
		override public function execute(note:INotification):void
		{
			var app:CongMoney2 = note.getBody() as CongMoney2;
			trace("execute startupCommand in CongMoney Module");
			
			facade.registerProxy(new CongMoney2ListProxy());
			facade.registerProxy(new CongMoney2Proxy());
			facade.registerProxy(new CelebrationProxy());
			facade.registerProxy(new CelebrationCodeProxy());
			
			facade.registerProxy(new FamilyProxy());
			facade.registerProxy(new AccountProxy());
			facade.registerProxy(new SupportStandardProxy());
			facade.registerProxy(new CelebrationApprovalProxy());
			
			facade.registerProxy(new ApprovalDetailProxy());
			  
			 
			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerMediator(new CongMoney2Mediator(app.view));
			//facade.registerMediator(new ReqCelebration2Mediator(app.view));
			
		}
	}
}